<?php
class CommonAction extends Action{
	public function _initialize(){
		//初始化的时候检查用户权限
		if(!isset($_SESSION['username']) || $_SESSION['username']==''){
			$this->redirect('Login/login');
		}
	}
}
?>
